import java.util.Scanner;

public class text_11 {
    public static void main(String[] args) {
        System.out.println("输入是不是会员");
        Scanner sc=new Scanner(System.in);
        System.out.println("输入购买金额");
        String type=sc.next();
        double money=sc.nextDouble();
        if (type.equals("不是")){
            money=money*0.9;
            System.out.println("需要支付："+money);
        }else if (type.equals("是")){
            if (money<200){
                money=money*0.8;
            }else {
                money=money*0.75;
            }
            System.out.println(money);
        }
    }
}
